<!DOCTYPE html>
<html>
<head>
    <title></title>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <style>

        @font-face {
            font-family: 'VerdanaRegular';
           /* src: url('../../public/order/font/VERDANA.TTF') format('truetype');*/
            src:url("{{asset('order/font/VERDANA.TTF')}}") format('truetype');
            font-weight: normal;
            font-style: normal;
        }

        @font-face {
            font-family: 'VerdanaBold';
            src:url("{{asset('order/font/VERDANA-B.TTF')}}") format('truetype');
            font-weight: bold;
            font-style: normal;
        }


        * {
            margin: 0;
            padding: 0;
            font-family: VerdanaRegular, sans-serif;
            font-weight: normal;
        }


        .myA{
            color: #267EF0;
            text-decoration: underline;
        }

        .border {
            border-top: 5px solid #ddd;
        }
        .box{
            height: 50px;
        }
        .text{
            line-height: 30px;
            display: block;
        }
        .block::after,.zuo::after{
            content: "";
            display: table;
            clear: both;
        }
        .block label {
            width: 46px;
            float: left;
            font-weight: bold;
            font-size: 22px;
        }
        .block span {
            float: left;
            line-height: 30px;
            max-width: 90%;
        }
        .block label,.block span {
            display: block;
            line-height: 35px;
            font-size: 15px;
        }
        .zuo div{
            float: left;
            line-height: 55px;
            text-align: right;
            position: relative;
        }
        .zuo div:nth-child(1){
            width: 70%;
        }
        .zuo div:nth-child(2){
            width: 30%;
        }
        .dashed::after{
            content: "";
            position: absolute;
            bottom: 0;
            right: 0;
            width: 50%;
            border-bottom: dashed #333 2px;
        }
        table {
            width: 900px;
            margin: auto;
            border-collapse: collapse;
        }
        p {
            height:55px;
            line-height: 55px;
            font-weight: bold;
        }
        tr {
            height:55px;
        }
        th {
            height:55px;
            font-family: 'VerdanaBold', sans-serif;
            font-weight: bolder;
        }
        .bold-text {
            font-family: 'VerdanaBold', sans-serif;
            font-weight: bolder;
        }
        td {
            height:50px;
        }
    </style>
</head>
<body>
<div style="width: 900px;margin: auto;">

    <div style="height: 85px">

    </div>

    <div style="margin-top: 60px;margin-bottom: 40px;">
        <img src="{{asset('order/image/FireflyLogo.svg')}}" style="width: 100px;height: 50px; display: block;margin:0 auto;"/>
    </div>

    <table>
        <tr>
            <td  width="300">Confirmation Number:</td>
            <td style="font-weight: bold;color: #006598;font-size: 20px;">{{$firstRecord->code}}</td>
            <td width="300">
{{--                <img src="data:image/png;base64,{{$img64}}" />--}}
            </td>
        </tr>
        <tr>
            <td  width="300">Booking Date:</td>
            <td>{{$createdAt}}</td>
        </tr>
        {{--<tr >
            <td class="bold-text" width="300">Passenger Information:</td>
            <td></td>
        </tr>--}}
    </table>
    <p>Passenger Information:</p>
    <div class="border"></div>

    <table>
        <tr>
            <th align="left">Name</th>
            <th align="left">Customer Number</th>
            <th align="left">Flight #/Seat #</th>
        </tr>
        @foreach($passengers as $passenger)
            <tr>
                <td >{{$passenger['type']}} {{$passenger['name']}}</td>
                <td ></td>
                @if($isDouble)
                    <td >{{$flightInfos[0]['flight_no']}}/NA &nbsp;&nbsp;{{$flightInfos[1]['flight_no']}}/NA</td>
                @else
                    <td >{{$flightInfos[0]['flight_no']}}/NA</td>
                @endif
            </tr>
        @endforeach
    </table>
    <div class="border"></div>
    <div class="box"></div>
    <p>Flight Information:</p>
    <div class="border"></div>

    <table>
        <tr>
            <th align="left">Date</th>
            <th align="left">Flt</th>
            <th align="left">Depart</th>
            <th align="left">Arrive</th>
            <th align="left">Status</th>
            <th align="left">Fare</th>
            <th align="left">Stops</th>
        </tr>
        @foreach($flightInfos as $flightInfo)
            <tr>
                <td>{{$flightInfo['date']}}</td>
                <td>{{$flightInfo['flight_no']}}</td>
                <td>{{$flightInfo['start_airport']}} {{$flightInfo['start_fly_time']}}</td>
                <td>{{$flightInfo['end_airport']}} {{$flightInfo['end_fly_time']}}</td>
                <td>Confirmed</td>
                <td>PPET</td>
                <td>0</td>
            </tr>
        @endforeach

    </table>
    <div class="border"></div>
    <div class="box"></div>
    <div class="box"></div>
    <p>Special Services Request</p>
    <div class="border"></div>

    <table>
        <tr>
            <th align="left">Name</th>
            <th align="left">Going Out</th>

        </tr>
        @foreach($passengers as $passenger)
            <tr>
                <td >{{$passenger['type']}} {{$passenger['name']}}</td>
                <td style="font-size: larger;" >Baggage 20kg Free</td>
            </tr>
        @endforeach

        @if($isDouble==1)
            <tr>
                <th align="left">Name</th>
                <th align="left">Coming Back</th>

            </tr>
            @foreach($passengers as $passenger)
                <tr>
                    <td >{{$passenger['type']}} {{$passenger['name']}}</td>
                    <td style="font-size: larger;" >Baggage 20kg Free</td>
                </tr>
            @endforeach

        @endif


    </table>
    {{--<div class="border"></div>
    <div class="box"></div>

    <p>Price Summary / Taxes:</p>
    <div class="border"></div>
    <div class="box"></div>
    <div class="zuo">
        <div>Base Fare:</div>
        <div class="dashed">0.00 MYR</div>
    </div>
    <div class="zuo" style="height: 150px;">
        <div>Total Fare Price:</div>
        <div style="height: 150px;" class="dashed">0.00 MYR</div>
    </div>
    <div class="zuo">
        <div>Balance Due:</div>
        <div>0.00 MYR</div>
    </div>--}}
    <div class="border" style="clear: both;"></div>

    <p>NOTICE OF TERMS AND CONDITIONS</p>
    <div class="text">ACKNOWLEDGEMENT</div>
    <div class="text">You have understood and accepted Firefly's General Conditions of Carriage, Fare Rules and confirmed that the passenger(s) on this reservation do(es) not require</div>
    <div class="text">Code share flights 4000-4999 and 7000-7999 are subject to Operating Carrier General Conditions of Carriage. Please refer to Fare Rule section on ticketing condition.</div>
    <div class="box"></div>

    <div class="text">OTHER INFORMATION</div>
    <div class="block">
        <label>1.</label>
        <span>This information is correct at time of booking/printing and is subject to change without prior notice.</span>
    </div>
    <div class="block">
        <label>2.</label>
        <span>Passenger(s) must provide current contact numbers for us to contact you whenever is required.</span>
    </div>
    <div class="block">
        <label>3.</label>
        <span>Our check-in counters for flights using ATR72-500 aircraft are open ninety (90) minutes and close thirty (30) minutes before the domestic scheduled flight departure time and forty five (45) minutes for international scheduled flight
departure time and for flights using B737-800 aircraft, check-in counter are open hundred and twenty (120) minutes
and closed forty five (45) minutes before for domestic and international scheduled flight. Check-in deadlines may vary at different airports and for particular flights; it is your responsibility to ensure that you comply with these deadlines, the particulars of which will be available at the time you make your booking. In any event, without derogating from the generality of other provisions of these General Conditions of Carriage governing the right of refusal of carriage, we
reserve the right not to allow you to check in without any liability to you and without having to refund to you any Tariff
paid. Code share flights 4000-4999 and 7000-7999 are subject to Operating Carrier Check-in requirement.</span>
    </div>
    <div class="block">
        <label>4.</label>
        <span>We are strictly a point-to-point carrier and shall not be liable in the event you fail to meet any connecting flights.</span>
    </div>
    <div class="block">
        <label>5.</label>
        <span>Passenger(s) must ensure that he or she has in its possession all documents required for travel on above mentioned flight(s) and that such
documents are valid. For domestic travel, a valid passport or photo identification is required. For international travel, a valid passport with at least
six (6) months' validity from the date of departure, the applicable visa and a return or onward itinerary are required. Firefly reserves the right to deny
carriage of passengers without proper documentation.</span>
    </div>
    <div class="block">
        <label>6.</label>
        <span>Each passenger is allowed one hand-carry baggage of up to 7kg provided it does not exceed the dimensions of 56cm X 36cm X 23cm.</span>
    </div>
    <div class="block">
        <label>7.</label>
        <span>Passengers booked on ATR 72-500 aircrafts or routes are offered complimentary 10kg checked-baggage, which is subject to conditions and
limitations; baggage that weighs more than 10kg will be charged excess baggage fees. Please refer to Fee Schedule for details. Code share flights
4000-4999 and 7000-7999 are subject to Operating Carrier Baggage Allowance.</span>
    </div>
    <div class="block">
        <label>8.</label>
        <span>Saver passengers are entitled for: ATR 72-500 - Complimentary 10kg checked-baggage, which is subject to conditions and limitations; baggage that
weighs more than 10kg will be charged excess baggage fees. Please refer to Fee Schedule for details. Boeing 737-800 - Only one hand-carry
baggage. Fees apply for checked baggage allowance. Please refer to Fee Schedule for details.</span>
    </div>
    <div class="block">
        <label>9.</label>
        <span>Basic passengers are entitled for: ATR72-500 - 20kg checked-baggage and entitled for one free flight change. Boeing 737-800 - 20kg
checked-baggage and entitled for standard seat selection. For more info, please visit <span class="myA">www.fireflyz.com.my/flights/basic-flex.</span></span>
    </div>
    <div class="block">
        <label>10.</label>
        <span>Flex passengers are entitled for: ATR72-500 - 30kg checked-baggage and entitled for priority baggage, unlimited flight changes with no change fee
(fare difference applies), inclusive of Sky Lounge access(located at Subang Skypark; only applicable for routes departing from Subang), Basic Shield
Plan (MY and SG POS only) and free seat selection. Boeing 737-800 - 30kg checked-baggage and entitled for priority baggage, priority check-in,
priority boarding, unlimited flight changes with no change fee (fare difference applies), Basic Shield Plan (MY and SG POS only), free seat selection
and hot meal. For more info, please visit <span class="myA">www.fireflyz.com.my/flights/basic-flex.</span></span>
    </div>
    <div class="block">
        <label>11.</label>
        <span>Carriage of firearms, weapons and ammunitions on person or as check-in baggage is strictly not allowed for ATR 72-500 flights</span>
    </div>
    <div class="block">
        <label>12.</label>
        <span>Personal Data Protection Act 2010 (PDPA) has been implemented to safeguard the use of customer s personal data as defined in the Act. Please refer
to our PDPA Privacy Notice at <span class="myA">www.fireflyz.com.my</span> on how we use and protect your personal data.</span>
    </div>
    <div class="block">
        <label>13.</label>
        <span>Effective 1st September 2018, Firefly (ST Registration Number: W24-1808-32000045) will not be issuing a Tax Invoice to passengers as no input tax
credits may be claimed. The flight itinerary will be the official invoice under the Service Tax regime.</span>
    </div>

</div>
</body>
